package com.port.eleport.model.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.port.eleport.model.base.IdEntity;
import com.port.eleport.model.plat.TMerchant;

/**
 *  退换货
 * @author jameschen
 *
 */
@Entity
@Table(name = "biz_sr", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class TSr extends IdEntity {
	/**
	 * 退换货标志 00:退货  01 换货
	 */
	private String flag;
	
	/**
	 * 订单号
	 */
	@Column(name="order_no")
	private String orderNo;
	
	
	/**
	 * 运单号
	 */
	@Column(name="logistics_no")
	private String logisticsNo;
	
	
	/**
	 * 商家
	 */
	@ManyToOne
	@JoinColumn(name="merchant_id")
	private TMerchant merchant;


	public String getFlag() {
		return flag;
	}


	public void setFlag(String flag) {
		this.flag = flag;
	}


	public String getOrderNo() {
		return orderNo;
	}


	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}


	public String getLogisticsNo() {
		return logisticsNo;
	}


	public void setLogisticsNo(String logisticsNo) {
		this.logisticsNo = logisticsNo;
	}


	public TMerchant getMerchant() {
		return merchant;
	}


	public void setMerchant(TMerchant merchant) {
		this.merchant = merchant;
	}
}
